Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document NamedAddress #374

Merged

Conversation

rosenhouse
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 7, 2020
@k8s-ci-robot k8s-ci-robot requested review from bowei and robscott October 7, 2020 03:42
@k8s-ci-robot
Copy link
Contributor

Hi @rosenhouse. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 7, 2020
@robscott
Copy link
Member

robscott commented Oct 7, 2020

Thanks!

/ok-to-test
/approve

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 7, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: robscott, rosenhouse

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2020
@jpeach
Copy link
Contributor

jpeach commented Oct 7, 2020

This is documented just below, do you think that summarizing here is needed too?

https://github.com/kubernetes-sigs/service-apis/blob/9c92ae4817fcf62a80285a246fd4913774600bd6/apis/v1alpha1/gateway_types.go#L536-L552

@rosenhouse
Copy link
Contributor Author

rosenhouse commented Oct 7, 2020

@jpeach The code comments you quoted do not appear in the docs page (try doing an in-page text search for is an address selected by name at this url.

Also: I was trying to understand what an example of a NamedAddress might look like (slack thread). As someone new to the project, having an extra note giving the example of "static" or "elastic" IP helped me better understand how this field is meant to be used.

@jpeach
Copy link
Contributor

jpeach commented Oct 8, 2020

@jpeach The code comments you quoted do not appear in the docs page

ahmetb/gen-crd-api-reference-docs#21

:(

@jpeach
Copy link
Contributor

jpeach commented Oct 11, 2020

This is a general problem with the online docs. We have a lot of API-relevant information attached to constants in the Go code which isn't exposed in the HTML docs. It doesn't seem practical to hoist all that up to the corresponding types, and in some cases the types aren't anchored all the way up to a CRD spec (e.g. we don't constrain condition types using the type system).

@robscott
Copy link
Member

@jpeach Should we restructure how we document our code to so the reference docs are more useful? We could either duplicate documentation or move the majority of the description/types to where they are actually used.

@robscott
Copy link
Member

@rosenhouse @jpeach Although I don't love duplicating documentation, I think it's worth it for the sake of understandable reference docs.

Comment on lines 530 to 531
// * "IPAddress": an IPv4 or IPv6 address
// * "NamedAddress": an opaque identifier, controller-dependent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think it's worth updating the text here to more closely reflect the descriptions below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@hbagdi
Copy link
Contributor

hbagdi commented Nov 23, 2020

@rosenhouse A friendly ping to get this PR moving forward.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2020
@rosenhouse rosenhouse force-pushed the doc-string-named-address branch from 41dbee0 to cfa160d Compare December 1, 2020 18:47
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2020
@rosenhouse rosenhouse force-pushed the doc-string-named-address branch from cfa160d to 2587aaa Compare December 1, 2020 20:08
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 1, 2020
@rosenhouse
Copy link
Contributor Author

@hbagdi I think I've got it cleaned up, please take a look again.

@hbagdi
Copy link
Contributor

hbagdi commented Dec 3, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 3, 2020
@k8s-ci-robot k8s-ci-robot merged commit 1655f2a into kubernetes-sigs:master Dec 3, 2020
@rosenhouse rosenhouse deleted the doc-string-named-address branch December 3, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants